@using CodeGenerator
@using RazorLight
@using BXJG.Common;
@using BXJG.Common.Extensions;
@inherits TemplatePage<ExecuteContext>
@{
    DisableEncoding = true;//禁止html编码，因为我们是做代码生成器
}
using AutoMapper;
using @(Model.Model.ApplicationCommonShareNamespace);
using @(Model.Model.CoreNamespace);

namespace @(Model.Model.ApplicationCommonNamespace)
{
    public partial class AutoMapperProfile : Profile
    {
        public AutoMapperProfile()
        {
            var cfg = CreateMap<@(Model.Model.EntityName), @(Model.Model.ProviderDtoName)>();
    @if (Model.Model.IsTree)
    {
            @:cfg.EntityToComboTree();
    }
        }
    }
}